package gob.inei.enaho.context;

import java.io.File;

import android.os.Environment;

public class AppContext {
	    
	public static final File RAIZ = Environment.getExternalStorageDirectory();		
	public static final File DIR_ENAHO = new File(RAIZ+File.separator+"enaho");
	public static final File DIR_MARCO = new File(DIR_ENAHO+File.separator+"marco");
	public static final File DIR_BACKUP = new File(DIR_ENAHO+File.separator+"backup");
	
	//public static LocationManager manager;
	
	public static final int ANHO_ENCUESTA = 2014;
	
	private final ControllerContext controllerContext = new ControllerContext();
	private final ModelContext modelContext = new ModelContext();
		
	public static ControllerContext getControllers() {
		return Aplicacion.appContext.controllerContext;		
	}
	
	public static ModelContext getServices() {
		return Aplicacion.appContext.modelContext;		
	}

	public void inicializar() {
		modelContext.inicializar();	
		controllerContext.inicializar(modelContext);
		
		//Context context = Aplicacion.getAplicacion();
		//manager = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
	}
	
}
